package com.example.mysocket.controller;

import com.example.mysocket.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author 杨豹
 * @create 2021/8/6 0006 15:54
 * @description 描述
 */
@RestController
@RequestMapping("/")
public class LoginController {

    @Autowired
    LoginService loginService;

    @GetMapping("/login")
    public int login(String name) {
        return loginService.loginCheck(name);
    }
}
